<%@ page import="java.util.List" %>
<%@ page import="com.cn.zpark.beans.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th>ID</th>
    <th>uname</th>
    <th>pwd</th>
  </tr>
  <%
    // 取出请求域中绑定的数据
    List<User> users = (List<User>) request.getAttribute("users");
    for (User user : users) {
      out.println("<tr>");

      out.println("<td>"+user.getId()+"</td>");
      out.println("<td>"+user.getUname()+"</td>");
      out.println("<td>"+user.getPwd()+"</td>");

      out.println("</tr>");
    }
  %>
</table>
</body>
</html>
